package com.wxzz.elearing.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wxzz.elearing.user.dto.EnterpriseApplyDto;
import com.wxzz.elearing.user.dto.FailEnterpriseApplyDto;
import com.wxzz.elearing.user.dto.PassEnterpriseApplyDto;
import com.wxzz.elearing.user.entity.AdminUser;
import com.wxzz.elearing.user.entity.EnterpriseApply;
import com.wxzz.elearning.common.vo.JgPageVo;
import com.wxzz.elearning.common.vo.ReturnVO;

public interface IEnterpriseApplyService extends IService<EnterpriseApply> {

    /**
     * 企业入驻申请
     *
     * @param enterpriseApply
     * @return
     */
    ReturnVO saveEnterpriseApply(EnterpriseApply enterpriseApply);

    /**
     * 后台企业入驻申请列表
     *
     * @param enterpriseApplyDto
     * @return
     */
    ReturnVO<JgPageVo<EnterpriseApply>> listEnterpriseApply(EnterpriseApplyDto enterpriseApplyDto);

    /**
     * 企业审核通过
     * @param passEnterpriseApplyDto
     * @return
     */
    ReturnVO<Long> passEnterpriseApply(AdminUser adminUser,PassEnterpriseApplyDto passEnterpriseApplyDto);

    /**
     * 企业审核失败
     * @param failEnterpriseApplyDto
     * @return
     */
    ReturnVO failEnterpriseApply(AdminUser adminUser,FailEnterpriseApplyDto failEnterpriseApplyDto);

    /**
     * 根据用户id查询审核状态
     * @param wxUserId
     * @return
     */
    ReturnVO selectStatus(Long wxUserId);
}
